﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Messages.aspx.cs" Inherits="_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">
        #Form1
        {
            height: 567px;
            background-color:White;
        }
        #Messages
        {
            height: 674px;
            top: 338px;
            left: 114px;
            position: absolute;
            width: 912px;
        }
    </style>
   
    
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">

      
        <div align="center" runat="server" title="Received Messages" 
            style="height: 945px" >
            <telerik:RadGrid ID="RadGrid1" runat="server"   
                OnNeedDataSource="RadGrid1_NeedDataSource" OnItemDataBound="RadGrid1_ItemDataBound"  
            OnItemCommand="RadGrid1_ItemCommand" 
                style="top: 263px; left: 43px; position: absolute; height: 48px" 
                Width="1050px"  >
 
 <MasterTableView AutoGenerateColumns="false" DataKeyNames="FromEmailID,Subjects,Description,Signature,CreatedDate">
 <NoRecordsTemplate></NoRecordsTemplate>
 
 <Columns>
   <telerik:GridBoundColumn  HeaderText="FromEmailID" UniqueName="FromEmailID" DataField="FromEmailID" HeaderStyle-Width="10%" ></telerik:GridBoundColumn>
 <telerik:GridBoundColumn HeaderText="Subject" UniqueName="Subjects" DataField="Subjects" HeaderStyle-Width="10%"></telerik:GridBoundColumn>
  <telerik:GridBoundColumn HeaderText="Description" UniqueName="Description" DataField="Description" HeaderStyle-Width="10%" ></telerik:GridBoundColumn>
  <telerik:GridBoundColumn HeaderText="Signature" UniqueName="Signature" DataField="Signature" HeaderStyle-Width="10%" ></telerik:GridBoundColumn>
  <telerik:GridDateTimeColumn HeaderText="Received Messages" UniqueName="CreatedDate" DataField="CreatedDate" DataFormatString="{0:M/d/yyyy}" HeaderStyle-Width="10%"></telerik:GridDateTimeColumn>
  <telerik:GridTemplateColumn ItemStyle-Width="10%" AllowFiltering="false">
  
  <ItemTemplate>
  <asp:LinkButton   ID="ReplyMessage" runat="server" Text="Reply" CommandName="Reply" CommandArgument='<%# Eval("MessageID") %>' ForeColor="#0000FF"></asp:LinkButton>
  </ItemTemplate>
   </telerik:GridTemplateColumn>
   <telerik:GridTemplateColumn ItemStyle-Width="10%" AllowFiltering="false">
    <ItemTemplate>
  <asp:LinkButton   ID="Delete" runat="server" Text="Delete" CommandName="Delete" CommandArgument='<%# Eval("MessageID") %>' ForeColor="#0000FF"></asp:LinkButton>
  </ItemTemplate>
  </telerik:GridTemplateColumn>
   </Columns>
    
 </MasterTableView>
 </telerik:RadGrid>

            </div>

              <div id="Messagesgrid" runat="server">
            <asp:ScriptManager  ID="sm1" runat="server"  ></asp:ScriptManager>
            <asp:Button ID="CreateMessage" runat="server" Text="Compose" 
                OnClick="btnCreateMessage_OnClick"  ForeColor="White"
                
                style="top: 214px; left: 160px; position: absolute; background-color: #333955; height: 26px; width: 83px" />
        </div>
        


        

</asp:Content>
